package com.spark.incoicings.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.spark.invoicings.entity.InboundDetail;
import com.spark.invoicings.utils.Result;

import java.util.List;
import java.util.Map;

public interface InboundDetailService extends IService<InboundDetail> {

    /**
     * 根据id回显入库单明细数据
     * @param id
     * @return
     */
    InboundDetail selectInboundDetailByInboundId(Integer id);

    /**
     * 保存入库明细单
     * @param inboundDetail
     * @return
     */
    Result addInboundDetail(InboundDetail inboundDetail);

    /**
     * 保存和更新数据加载
     * @return
     */
    Result selectInboundDetailSave();

    /**
     * 查询所有入库单明细
     * @param map
     * @return
     */
    List<InboundDetail> selectInboundDetailAll(Map<String, Object> map);

    Result updateInboundDetail(InboundDetail inboundDetail);
}
